Skip to content

Add configurable credible intervals to sample reports - #540

Draft
BJMCox wants to merge 9 commits into
mainfrom
fix-381-configurable-report-intervals
Draft

BJMCox wants to merge 9 commits into
mainfrom
fix-381-configurable-report-intervals

Conversation

@BJMCox

@BJMCox BJMCox commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

Fixes #381.

Add configurable probability masses and interval modes to sample reports through smallest_credible_intervals(...; p, mode). Reports show all disjoint components, support mode = :connected and full mass, and retain the default masses and deprecated bat_report keyword forwarding.

Main code: +42/-7.

@BJMCox BJMCox self-assigned this Aug 16, 2026
@codecov

codecov Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.98%. Comparing base (87a734d) to head (38419e1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/variates/density_sample.jl 0.00% 17 Missing ⚠️
src/deprecations.jl 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #540      +/-   ##
==========================================
- Coverage   69.13%   68.98%   -0.15%     
==========================================
  Files         122      122              
  Lines        7211     7226      +15     
==========================================
  Hits         4985     4985              
- Misses       2226     2241      +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BJMCox
BJMCox marked this pull request as ready for review August 16, 2026 11:41
@BJMCox

BJMCox commented Aug 16, 2026

Copy link
Copy Markdown
Member Author

Surprisingly tricky but this seems to work?

@BJMCox
BJMCox requested a review from oschulz August 16, 2026 11:41
@BJMCox
BJMCox force-pushed the fix-381-configurable-report-intervals branch from e5226a5 to 21627da Compare August 31, 2026 15:58
@BJMCox
BJMCox force-pushed the fix-381-configurable-report-intervals branch from 21627da to c49cbe7 Compare September 1, 2026 12:06
@oschulz
oschulz marked this pull request as draft September 14, 2026 12:55
Reports now use the shared probability and mode API instead of a separate histogram estimator. This preserves report configuration and compatibility while adding connected intervals and full-mass support.
@BJMCox
BJMCox marked this pull request as ready for review September 15, 2026 13:18
@oschulz
oschulz marked this pull request as draft September 15, 2026 13:38
@oschulz

oschulz commented Sep 15, 2026

Copy link
Copy Markdown
Member

Let's think about what kind of API we need for this in LazyReports so that such user preferences can propagate.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom CIs and/or printing all CI values via bat_report

2 participants